package com.woniu.job.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author song
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Work对象", description = "")
public class Work implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    private String name;

    private String nature;

    private String fresh;

    private Integer numbers;

    @TableField("validTime")
    private LocalDateTime validTime;

    private String category;

    private String address;

    private String education;

    @TableField("SalaryRange")
    private String SalaryRange;

    private String description;

    private String status;

    @TableField("companyId")
    private String companyId;

    @TableField(exist = false)
    private Company companys;

    @TableField(exist = false)
    private Category categorys;


    public Work companyId(String  companyId) {
        this.companyId = companyId;
        return this;
    }

    public Work id(Category categorys) {
        this.categorys = categorys;
        return this;
    }

    public Work id(Company companys) {
        this.companys = companys;
        return this;
    }

    public Work id(String id) {
        this.id = id;
        return this;
    }

    public Work name(String name) {
        this.name = name;
        return this;
    }

    public Work nature(String nature) {
        this.nature = nature;
        return this;
    }

    public Work fresh(String fresh) {
        this.fresh = fresh;
        return this;
    }

    public Work numbers(Integer numbers) {
        this.numbers = numbers;
        return this;
    }

    public Work validTime(LocalDateTime validTime) {
        this.validTime = validTime;
        return this;
    }

    public Work category(String category) {
        this.category = category;
        return this;
    }

    public Work address(String address) {
        this.address = address;
        return this;
    }

    public Work education(String education) {
        this.education = education;
        return this;
    }

    public Work salaryRange(String salaryRange) {
        SalaryRange = salaryRange;
        return this;
    }

    public Work description(String description) {
        this.description = description;
        return this;
    }

    public Work status(String status) {
        this.status = status;
        return this;
    }
}
